#include <stdio.h>

int main()
{
    float findMax(float, float);
    float firstnum, secnum, maxnum;

    printf("Enter a number: ");
    scanf("%f", &firstnum);
    printf("Great! Please enter a second number: ");
    scanf("%f", &secnum);

    printf("\nThe maximum of the two number entered is %f\n", findMax(firstnum, secnum));
    return 0;
}

float findMax(float x, float y)
{
    float maxnum;
    if (x >= y) /*find the maximum number*/
        maxnum = x;
    else
        maxnum = y;

    return maxnum;
}